<include file="public@header" />
<link href="__TMPL__/public/assets/css/city-picker.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Merchant/index')}">客户管理</a></li>
			<li class="active"><a href="{:url('Merchant/add')}">添加客户</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('Merchant/addpost')}">
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>客户名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="user_nickname" required >
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>请求接口账号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_login" name="user_login" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_pass" class="col-sm-2 control-label"><span class="form-required">*</span>请求接口密码</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_pass" name="user_pass" placeholder="******" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_ip" class="col-sm-2 control-label"><span class="form-required">*</span>请求域名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_domain" name="user_domain" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_ip" class="col-sm-2 control-label"><span class="form-required">*</span>请求IP地址</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_ip" name="user_ip" required>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>开始时间</label>
				<div class="col-md-6 col-sm-10">
					<input class="form-control js-bootstrap-date" type="text" name="start_time" value="{:date('Y-m-d',time())}"  required readonly>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_login" class="col-sm-2 control-label"><span class="form-required">*</span>到期时间</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" name="end_time" required readonly>
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_email" class="col-sm-2 control-label">备注</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-signature" name="remark">
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>